import request from '@/utils/request';

// 公司列表
export function listData(query) {
  return request({
    url: `/admin/channelCompany/list`,
    method: 'get',
    params: query
  });
}

// 创建公司
export function saveData(query) {
    return request({
        url: `/admin/channelCompany/create`,
        method: 'post',
        data: query
    });
}

// 停用
export function updateData(query) {
    return request({
        url: `/admin/channelCompany/stop`,
        method: 'post',
        data: query
    });
}

// 公司管理-渠道用户列表
export function channelUserList(query) {
    return request({
        url: `/admin/channelCompany/channelUserList`,
        method: 'get',
        params: query
    });
}

// 公司详情
export function companyDetail(query) {
    return request({
        url: `/admin/channelCompany/detail`,
        method: 'get',
        params: query
    });
}
// channelAdmin/channel/password
export function resetPassword(query) {
    return request({
        url: `/admin/channelCompany/password`,
        method: 'post',
        data: query
    });
}

// 更改房间号
export function updateRoom(query) {
    return request({
        url: `/admin/channelCompany/updateRoom`,
        method: 'post',
        data: query
    });
}